<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   template="../WEB-INF/templates/default.xhtml">
   <ui:define name="aside">
   <ui:include src="meny.xhtml" />
   </ui:define>
   <ui:define name="content">
      <h2>Promena lozinke studenta</h2>

      <h:form styleClass="loginForm">
         <h:panelGrid columns="2" columnClasses="titleCell">
            <h:outputLabel for="idstud" value="Nova lozinka:"/>
            <h:inputSecret id="idstud" value="#{studentEdit.lozinka1}"/>
            <h:outputLabel for="imestud" value="Ponovite:"/>
            <h:inputSecret id="imestud" value="#{studentEdit.lozinka2}" />
         </h:panelGrid>

         <p>
            <h:panelGrid columns="2">
               <h:commandButton id="register" action="#{studentEdit.editLozinka()}" value="Sacuvaj" styleClass="saveButton"/>
               <h:commandButton id="cancelButton" action="#{studentEdit.initLozinka()}" value="Odustani" styleClass="cancelButton"/>
            </h:panelGrid>
            <h:messages styleClass="messages" errorClass="invalid" infoClass="valid" warnClass="warning"
            globalOnly="true"/>  
         </p>
      </h:form>
      <p>&#160;</p>
      <p>&#160;</p>
      <p>&#160;</p>
      <p>&#160;</p>
      <p>&#160;</p>
      <p>&#160;</p>
      <p>&#160;</p>
   </ui:define>
</ui:composition>
